<?php
/** @var CobranzaController $this */
/** @var Cobranza $model */
/** @var AweActiveForm $form */
// Prevenir que jquery se cargue dos veces
Yii::app()->clientScript->scriptMap['jquery.js'] = false;
//Util::tsRegisterAssetJs('_form_modal.js');

//Yii::import('ext.CJuiDateTimePicker.CJuiDateTimePicker');
$form = $this->beginWidget('ext.AweCrud.components.AweActiveForm', array(
    'type' => 'horizontal',
    'id' => 'cierre-caja-form',
//    'action' => Yii::app()->createUrl('/ventas/cierreCaja/createModal') ,
    'enableAjaxValidation' => true,
    'clientOptions' => array('validateOnSubmit' => false, 'validateOnChange' => false,),
    'enableClientValidation' => false,
        ));
?>


<div class="modal-header">
    <a class="close" data-dismiss="modal">&times;</a>
    <h4><i class="icon-money"></i> Ingresar inicio de Caja</h4>
</div>

<div class="modal-body">
    <?php echo $form->textFieldRow($model, 'valor_apertura', array('maxlength' => 10)) ?>
    <?php echo $form->textAreaRow($model, 'observaciones', array('rows' => 3, 'cols' => 50)) ?>



</div>
<div class="modal-footer">
    <?php
    $this->widget('bootstrap.widgets.TbButton', array(
//        'buttonType' => 'submit',
        'type' => 'success',
        'icon' => 'ok',
        'label' => $model->isNewRecord ? Yii::t('AweCrud.app', 'Create') : Yii::t('AweCrud.app', 'Save'),
        'htmlOptions' => array(
//            'onClick' => 'js:crearCierreCaja("#cierre-caja-form")',
            'onClick' => 'js:crearCierreCaja("#cierre-caja-form")',
//                                'onClick' => 'js: AjaxAtualizacionInformacion("#cierre-caja-form")')

//            'modal-save' => 'btn_cierre_caja_save'
        )
    ));
    ?>
    <?php
    $this->widget('bootstrap.widgets.TbButton', array(
        'icon' => 'remove',
        'label' => Yii::t('AweCrud.app', 'Cancel'),
        'htmlOptions' => array('data-dismiss' => 'modal')
    ));
    ?>
</div>

<?php $this->endWidget(); ?>